package com.zouxin.zouxin_slidecard;

import java.util.ArrayList;
import java.util.List;

public class SlideCardBean {
    private int postition;
    private String url;
    private String name;

    public SlideCardBean(int postition, String url, String name) {
        this.postition = postition;
        this.url = url;
        this.name = name;
    }

    public int getPostition() {
        return postition;
    }

    public SlideCardBean setPostition(int postition) {
        this.postition = postition;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public SlideCardBean setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getName() {
        return name;
    }

    public SlideCardBean setName(String name) {
        this.name = name;
        return this;
    }

    public static List<SlideCardBean> initDatas() {
        List<SlideCardBean> datas = new ArrayList<>();
        int i = 1;
        datas.add(new SlideCardBean(i++, "https://img0.baidu.com/it/u=3339360680,16453795&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=453", "海贼1"));
        datas.add(new SlideCardBean(i++, "https://img2.baidu.com/it/u=3385909078,2104136397&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=463", "海贼2"));
        datas.add(new SlideCardBean(i++, "https://img1.baidu.com/it/u=2520413988,3710495687&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500", "海贼3"));
        datas.add(new SlideCardBean(i++, "https://img1.baidu.com/it/u=2712370838,1816756687&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=313", "海贼4"));
        datas.add(new SlideCardBean(i++, "https://img2.baidu.com/it/u=101509557,1920236483&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", "海贼5"));
        datas.add(new SlideCardBean(i++, "https://img1.baidu.com/it/u=1537338993,1392881&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=427", "海贼6"));
        datas.add(new SlideCardBean(i++, "https://img0.baidu.com/it/u=3334919067,2451179613&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=705", "海贼7"));
        datas.add(new SlideCardBean(i++, "https://img1.baidu.com/it/u=3506164696,693266679&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500", "海贼8"));
        return datas;
    }
}
